﻿/********************************************************************************
** @ Date:2025/05/15
** @ Author: Gaojia
** @ Description: 测点点表类
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef UPointTable_H
#define UPointTable_H
#include "CMeasurePoint.h"
#include <QTimer>
#include <QWidget>
#include "ui_UPointTable.h"

class UPointTable : public QWidget
{
	Q_OBJECT

public:
	UPointTable(QWidget *parent = nullptr);
	~UPointTable();
	void setTablePoint(QVector<CMeasurePoint *>pVecPoint);
	void setTablePoint(QList<CMeasurePoint *>pVecPoint);
	void startRefush();   //启动数据刷新
	void stopRefush();    //停止数据刷新
	bool eventFilter(QObject* obj, QEvent* event);
	void mouseReleaseEvent(QMouseEvent* event) override;
private:
	void showPointToTable();

public slots:
	void slot_upDate();   //表格刷新数据
private:
	Ui::UPointTableClass ui;
	QTimer *m_pTimer;
	QVector<CMeasurePoint *>m_pVecPoint;
	QList<CMeasurePoint *>m_pVecPointList;
};
#endif
